package com.hjq.mallorder.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjq.common.entity.to.SeckillTO;
import com.hjq.common.utils.PageUtils;
import com.hjq.mallorder.entity.OrderEntity;
import com.hjq.mallorder.entity.vo.*;
import com.hjq.mallorder.enume.OrderStatusEnum;

import java.util.Map;

/**
 * 订单
 *
 * @author Hjq
 * @email 1484397309@qq.com.com
 * @date 2022-05-24 17:20:43
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void receiveMsg();

    OrderConfirmVO getOrder();

    OrderResponseVO submitOrder(OrderSubmitVO orderSubmitVO);

    void closeOrder(OrderEntity orderEntity);


    PayVo getOrderByOrderSn(String orderSn);

    PageUtils queryPageWithItems(Map<String, Object> params);

    String handleResult(PayAsyncVo payAsyncVo);

    void  updatOrderStatus(String orderSn, Integer code);

    void createSeckill(SeckillTO seckillTO);
}

